package com.zxy.config.async;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * @author: Zxy
 * @description: 自定义线程池参数
 * @date: 2021-07-09 11:09
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@PropertySource(value = "classpath:async/asyncpool.properties")
@Configuration
@ConfigurationProperties(prefix = "async")
public class AsyncThreadPoolParam {
    private int corePoolSize;

    private int maxPoolSize;

    private int keepAliveSeconds;

    private int queueCapacity;
}
